<extend name="Public:base" />

<block name="content">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                {$type}
            </h3>
        </div>

    </div>

    <div class="row margin-botton">
        <div class="col-sm-6 column">
            <div class="btn-group btn-group-md">
                <button class="btn btn-default" type="button" onclick="doConfirmBatch('{:U('del', array('batchFlag' => 1))}', '确实要删除选择项吗？')"><em class="glyphicon glyphicon-remove-circle"></em> 删除</button>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <form action="" method="post" id="form_do" name="form_do">
                <div class="table-responsive">
                    <table class="table table-hover xyh-table-bordered-out">
                        <thead>
                        <tr class="active">
                            <th><input type="checkbox" id="check"></th>
                            <th>编号</th>
                            <th>电话号码</th>
                            <th class="text-right">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach($phoneInfo as $key => $data): ?>
                            <tr>
                                <td><input type="checkbox" name="key[]" value="<?=$data[id]?>"></td>
                                <td>{$data.id}</td>
                                <td>
                                    <p>
                                       <strong>电话：</strong><?=$data[phone]?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>时间：</strong><?=date('Y-m-d h:i:s',$data[public_time])?><br/>
                                    </p>
                                </td>
                                <td class="text-right">
                                    <a href="javascript:;" onclick="toConfirm('{:U('del',array('id' => $data['id']), '')}', '确实要删除吗？')" class="label label-danger">删除</a>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </form>


        </div>
    </div>

</block>